import request from '@/utils/request'

// 查询用户列表
export function listNjtUserRegister(query) {
  return request({
    url: '/nongjt/userRegister/list',
    method: 'get',
    params: query
  })
}

// 更新用户信息
export function updateNjtUserRegister(data) {
  return request({
    url: '/nongjt/userRegister/updateUserRegister',
    method: 'post',
    data: data
  })
}

// 删除用户
export function delNjtUserRegister(id) {
  return request({
    url: '/nongjt/userRegister/alterUserRegister' + id,
    method: 'delete'
  })
}

// 导出用户数据
export function exportNjtUserRegister(query) {
  return request({
    url: '/nongjt/userRegister/export',
    method: 'post',
    data: query
  })
}
